package com.atguigu;

import com.atguigu.vip.spring.demo.service.impl.QueryService;
import com.atguigu.vip.spring.framework.context.GPApplicationContext;

/**
 * @Author: JLL
 * @Date: 2019/5/15 23:26
 *
 * 测试类
 */
public class Test {

    public static void main(String[] args) throws Exception {
        GPApplicationContext context = new GPApplicationContext("classpath:application.properties");
        Object object = context.getBean("myAction");  //类首字母小写
        Object bean = context.getBean(QueryService.class);
        System.out.println(bean);
        System.out.println(object);

    }

}
